package demo6;
/*
* 设计为单例模式
*
* */
public class Student {
    private static Student student = new Student();

    private Student(){

    }

    public  static Student getInstance(){
        return student;
    }
}
